package pl.edu.uj.tcs.blef.protocol;

public class AcceptRequest extends Request {

	private String playerNick;
	private int cardAmount;
	
	AcceptRequest(String message, RequestHandler handler) {
		super(message, handler);
		fill();
	}

	@Override
	protected void fill() {
		this.playerNick = message.split(" ")[1];
		this.cardAmount = Integer.parseInt(message.split(" ")[2]);
	}
	
	public String getPlayerNick(){
		return this.playerNick;
	}

	public int getCardAmount(){
		return this.cardAmount;
	}
}
